<script>
	import Main from '@/helper/Main.js'
	import $utils from '@/helper/utils.js';
	export default {
		globalData: {  
		            util:$utils,
					isnew:false,
					text:'kiseng',
		        },
		onLaunch: function() {
			$utils.init_lize();
			 $utils.util_stroage_breakup((obj)=>{
			          console.log('app create 2',obj,JSON.stringify(obj));
					    let isnew= this.globalData.isnew = !obj.user_info;
			            if(isnew){
							   $utils.createfornew();
			            }
						$utils.getInitDataCb((initdata)=>{
								$utils.init_ready();
						})
			      })
				  console.log('app onLaunch 3');
		},
		onShow: function() {
			console.log('app show 1')
			$utils.getInitDataCb((initdata)=>{
				console.log('app show 2')
			})
		},
		onHide: function() {
			console.log('App Hide')
		},
		beforeCreate() {
			// #ifdef APP
				const domModule = uni.requireNativePlugin('dom')
				domModule.addRule('fontFace', {
					'fontFamily': "mysiconfont",
					'src': "url('./static/font.ttf')"
				});
			// #endif
		}
	}
</script>

<style>
	/* .my-iconfont {
			font-family:appiconfont;
			font-size:60rpx;
			color: #00AAFF;
		}
		 */

	/*每个页面公共css */
	  /* #ifdef H5 */ 
	    /* uni-page-head { display: none; } */
	    /* #endif */
</style>
